var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

/**
 * 用户
 *
 * @type {Schema}
 */
var User = new Schema({
    sid: String,
    name: String,
    profession: String, //职业
    photo : String,  //用户头像
    score: Number,

    battles: Number, ///对战次数
    success : Number, //对战成功次数
    failure : Number, //对战失败次数
    flee: Number //逃跑次数
});

mongoose.model('User', User, 'users');